package com.example.lncd.model;

import java.io.Serializable;
import java.util.List;

public class User implements Serializable {
    private Long id;
    private String username;
    private String phone;
    private String password;
    private UserType userType;
    private List<String> relatedAccounts;
    private String emergencyContact;

    public enum UserType {
        FAMILY, ELDERLY
    }

    public User() {
    }

    public User(String username, String phone, String password) {
        this.username = username;
        this.phone = phone;
        this.password = password;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public UserType getUserType() {
        return userType;
    }

    public void setUserType(UserType userType) {
        this.userType = userType;
    }

    public List<String> getRelatedAccounts() {
        return relatedAccounts;
    }

    public void setRelatedAccounts(List<String> relatedAccounts) {
        this.relatedAccounts = relatedAccounts;
    }

    public String getEmergencyContact() {
        return emergencyContact;
    }

    public void setEmergencyContact(String emergencyContact) {
        this.emergencyContact = emergencyContact;
    }
} 